using Autofac;

namespace GarageManagement.ViewModel
{
    public class ViewModelLocator
    {
        public static IContainer Container { get; set; }

        public MainViewModel Main
        {
            get
            {
                return Container.Resolve<MainViewModel>();
            }
        }

        public CustomerViewModel CustomerViewModel
        {
            get
            {
                return Container.Resolve<CustomerViewModel>();
            }
        }
    }
}